package designmode.design6;

/**
 * 订单服务
 *
 * @author lfg
 * @version 1.0
 */
public class OrderService {

    private static final ProductService productService = new ProductService();

    private static final UserService userService = new UserService();


    /**
     * 创建订单
     */
    public void create() {
        //获取用户信息
        userService.detail();

        //扣库存
        productService.decreaseStock();

        //等等
    }
}
